﻿@using System.Web.Razor.Parser.SyntaxTree
@using System.Web.UI.WebControls
@model wne.models.LogOnModel
@{
    ViewBag.Title = "Авторизация";
}

<h2>Введите логин и пароль:</h2>
@if (ViewBag.IsInvalide)
    {
        <span>Неверный пароль</span>
    }
@using(Html.BeginForm("LogOn", "Account",null, FormMethod.Post))
{
    @Html.TextBoxFor(m => m.UserName, new {placeholder="Логин"})
    <br/>
    @Html.PasswordFor(m=>m.Password, new {placeholder="Пароль"})
    <input type="hidden" name="returnUrl" value="@Request["returnUrl"]"/>
    <br />
    <input type="submit" />
}
